package com.gh.client;

import com.gh.config.ServiceFeignConfiguration;
import com.gh.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author Eric
 * @Date 2021/6/26 16:32
 * @Version 1.0
 */
@Component
@FeignClient(value="service-user",configuration = ServiceFeignConfiguration.class)
public interface PatientFeignClient {

    @GetMapping("/api/user/patient/inner/get/{id}")
    public Patient getPatientById(@PathVariable("id") Long id);
}
